Welcome![Sign In][Sign Up]
Location:
Search - lexical program in c

Search list

[ELanguage程序的词法分析

Description: 对简单的C程序或者Pascal程序进行词法分析以TOKEN字的形式放入结果文件-of simple C program or Pascal procedures lexical analysis in the form of the word TOKEN Add outcome document
Platform: | Size: 8589 | Author: 杨鼎新 | Hits:

[ELanguagec

Description: 简单的词法分析小例子- Simple lexical analysis small example
Platform: | Size: 7168 | Author: 站长 | Hits:

[ELanguage程序的词法分析

Description: 对简单的C程序或者Pascal程序进行词法分析以TOKEN字的形式放入结果文件-of simple C program or Pascal procedures lexical analysis in the form of the word TOKEN Add outcome document
Platform: | Size: 187392 | Author: 杨鼎新 | Hits:

[.netLexSeu

Description: 东南大学 课程设计 lex部分 说 明 **本次实验在Visual C++6.0环境下开发** 主要有以下文件: 1 词法分析器 lex.cpp 2 头文件 lex.h 3 测试文件 lex.l.txt lex工具的使用方法 编译运行 lex.cpp/lex.h,这样就将lex.l.txt转换成Cpp语言程序yylex.cpp 然后使用VC++6.0将lexyy.cpp编译成可执行程序, 这样就识别出了lex.l.txt中的正规表达式 打印出的字幕代表了识别出相应正规表达式时的动作。-Southeast University curriculum design lex** Note part of this experiment in Visual C 6.0 open environment** fat mainly in the following documents : a lexical analyzer lex.cpp two documents lex.h three test documents for lex.l.txt lex with the use of compiler running lex.cpp/lex.h. This will be converted into tracing lex.l.txt Language Program yylex.cpp then use the VC 6. 0 to lexyy.cpp compiled executable. This lex.l.txt identified by the formal expression of subtitles printed out on behalf of the formal identification of the corresponding table TAT-time action.
Platform: | Size: 10240 | Author: myname | Hits:

[ELanguagecifafenxi

Description: 这是一个非常优秀的运用VC++.net编写的词法分析程序。可以用来辨别一段高级语言C语言编写的程序是否符合词法规范,比较不错-This is a very good use of VC++. Net written procedures for lexical analysis. Can be used to identify a section of high-level language program written in C language with the lexical norms, compare well
Platform: | Size: 5120 | Author: 3035037 | Hits:

[ELanguageCompiler

Description: 编译课上做的小程序,用四种分析方法分别实现(LL1,算符优先,递归下降,简单词法分析) 完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。 <标识符>→字母︱ <标识符>字母︱ <标识符>数字 <无符号整数>→数字︱ <无符号整数>数字 <单字符分界符> →+ ︱- ︱* ︱ ︱(︱) <双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>* <小于>→< <等于>→= <大于>→> <冒号> →: <斜竖> →/ 识别语言的保留字 :begin end if then else for do while and or not-Compiler class to do a small procedure, analytical methods were used to achieve four (LL1, operator priority, recursive descent, a simple lexical analysis) to complete the grammar is described in a subset of the Pascal language word lexical analysis program symbols. < Identifier> → letters ︱ < identifier> letters ︱ < identifier> figures < unsigned integer> → Digital ︱ < unsigned integer> figures < single character boundaries Fu> →+ ︱- ︱ ︱* ︱ (︱) < two-character boundaries Fu> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal> → = < greater than> →> < colon> →: < oblique vertical> →/recognition of language reserved word: begin end if then else for do while and or not
Platform: | Size: 483328 | Author: 丁丁 | Hits:

[ELanguagewhile

Description: 否符合while语句的文法,或者能不能通过文法的开始符号推导出该语句。 (2) 该程序应该包括词法分析器,能对输入的语句进行词法分析,然后再对输出结果。词法分析器应能识别关键字,标示符,常量,操作符等。 (3) 该程序的语法分析器能对输入的语法进行分析,判断输入语句能否满足while循环语句的文法。通过简单优先的方法对语句进行分析,看能否能归约到文法的开始符号。 (4) 该程序的语义分析器就是对分析结果进行输出,要求输出结果是三地址形式的。-Compliance with the statement while the grammar, or to the beginning of grammar symbols can not be derived from the statement. (2) The program should include the lexical analyzer, the statement can be carried out input lexical analysis, and then output the results. Lexical analyzer should be able to identify the keywords, identifiers, constants, operators and so on. (3) parser of the program can analyze the syntax of input to determine whether the input statement to meet the loop while the grammar. Priorities through a simple statement of the method of analysis to see whether it can reduce to the beginning of grammar symbols. (4) the program analyzer is the semantic analysis of the results of the output requirements of the output is three-address form.
Platform: | Size: 60416 | Author: 李伟霞 | Hits:

[Windows Developcifafenxi

Description: 这是一个编译原理实验要用到的词法分析程序,用C++完成的,可以实现对C++源程序的词法分析,类型判别,已在VS2008调试通过,欢迎下载。-This is an experiment to use the compiler from lexical analysis program, using C++ to complete, and can be achieved on the C++ source code of the lexical analysis, the type of discrimination has been adopted in the VS2008 debugger, please download.
Platform: | Size: 1024 | Author: lyb | Hits:

[Other systemsMyCode

Description: a lexical analyzer program in C#
Platform: | Size: 16384 | Author: muhamma wasim | Hits:

[ELanguageSimple_Language_Lexer

Description: 这是一个使用了LEX所编写的Simple语言的词法分析器。Simple语言的定义说明请看附件。这个LEX的源代码可以通过Parser Generator 2来转化成为h文件跟cpp文件。由于编译这两个文件需要使用到Parser Generator 2的C++库,所以就只上传了LEX的源代码,谁感兴趣的可以自己通过Parser Generator 2来转化。至于UNIX下面的LEX工具如果想要转化的话需要修改其主程序,另外需要将LEX源代码之中有关C++语言的表达形式修改成为相应的C语言的表现形式才行之。总体这样子。-This is one written by using the LEX lexical analyzer Simple language. Simple definition of the language description see annex. The LEX source code can be transformed into Parser Generator 2 to h file with the cpp file. As the compilation of these two files need to use the Parser Generator 2 in C++ library, so we just uploaded the source code for LEX, who may be of interest to themselves through Parser Generator 2 to transform. As for the UNIX tools LEX below if you want converted, then need to modify its main program, another will need to LEX source code into the C++ language, forms of expression changes as the corresponding C-language expressions of Caixing. Overall like this.
Platform: | Size: 182272 | Author: 林宇浩 | Hits:

[ELanguagecifafenxi

Description: 此应用程序是用c语言编写的词法分析程序,上机调试成功通过测试。-This application is written in c language lexical analysis program, successfully tested on the machine commissioning.
Platform: | Size: 5120 | Author: 黄岩 | Hits:

[JSP/Javacifa(4.0)

Description: 用直接分析法编制类C语言子集的词法分析程序。在本词法分析程序模块中,主要分析自定义的类C语言的词法。自定义的语言主要包括数组定义、函数定义、结构体定义的语句,运算符号主要为特殊符号表里所定义的各类运算符。 设计要求简要讲解词法分析器的构造技术,设计此法分析器。词法分析程序的主要功能是读入源程序,输出单词符号。并提供出错处理。 -Prepared by direct analysis of a subset of C-language lexical analysis program. In the lexical analyzer module analyzes the custom C-language morphology. Custom language includes an array definition, function definition, the definition of the statement structure, operation symbols are mainly defined by the special symbol table various operators. Design brief to explain the construction of the lexical analyzer technology, the design of this method parser. Lexical analysis program main function is to read the source, the output word symbols. And provide error handling.
Platform: | Size: 318464 | Author: 张文 | Hits:

[ELanguageCompiler

Description: 一份完整的编译原理课程设计.设计了一个词法分析器和一个利用LL(1)算法实现的语法分析器.可以对C-语言编写的程序进行词法分析和语法分析,当出现错误时推断可能的原因.并最终用直观的方式构建起一棵语法分析树.-A complete compilation Principle. Designed a lexical analyzer and a use of LL (1) parser algorithm. Can be written in C-language program for lexical analysis and syntax analysis, may be inferred when an error occurs reasons. and eventually built up with an intuitive way to parse tree.
Platform: | Size: 269312 | Author: 无意乂 | Hits:

[ELanguageyufafenxishiyan

Description: 设计一个简单的词法分析器,从而进一步加深对词法分析器工作原理的理解。了解编译原理中词法分析器的原理,并用一种编程语言的具体代码实现简单的词法分析器的功能(在这里我使用C语言实现,代码可以完成简单的C语言程序中的关键词,变量,分界符,数字,运算符,赋值符。)-Design a simple lexical analyzer to further deepen the understanding of the lexical analyzer works. Compiler theory to understand the principles of lexical analyzer, and using a programming language specific code to achieve a simple lexical analyzer function (here I use the C language, the code can complete a simple C language program in the key words, variables, delimiter, numbers, operators, assignment operator.)
Platform: | Size: 109568 | Author: | Hits:

[ELanguageLexical_Analysis

Description: 设计并实现C语言词法分析程序。要求如下: 可以识别出用C语言编写的源程序中的每个单词符号,并以记号的形式输出每个单词符号。 可以识别并读取源程序中的注释。 可以统计源程序中的语句行数,单词个数和字符个数,其中标点和空格不计算为单词,并输出统计结果。 检查源程序中存在的错误,并可以报告错误所在的行列位置。 发现源程序中存在的错误后,进行适当的恢复,使词法分析可以继续进行,通过一次词法分析处理,可检查并报告源程序中存在的所有错误。 采用C/C++作为实现语言,手工编写此法分析程序。-Design and implementation of C language lexical analysis program. Requirements are as follows: Can identify the source with the C language symbol for each word, and to mark each word in the form of output symbols. Can identify and read the source of the comment. Statistical source of the statement could be the number of lines, words, numbers and character numbers, punctuation and spaces which are not counted as words, and output results. Check the source of errors, and can report the errors in the ranks of the position. Found that errors exist in the source program after the appropriate recovery, so that lexical analysis can proceed, through a lexical analysis, may inspect and report all errors that exist in the source program. Using C/C++ as implementation language, hand-written procedure for this method.
Platform: | Size: 3072 | Author: moontea | Hits:

[ELanguage16755430cafa

Description: 该程序是词法分析器。它的的主要功能是实现在C原程序的编译。简单容易理解。-The program is the lexical analyzer. Its main function is to achieve the original program in the C compiler. Simple and easy to understand.
Platform: | Size: 3072 | Author: success | Hits:

[ELanguageCIFAFENXI

Description: C语言 词法分析器。 (1) 可以识别出用C语言编写的源程序中的每个单词符号,并以记号的形式输出每个单词符号. (2) 可以识别并读取源程序中的注释. (3) 可以统计源程序中的语句行数、单词个数和字符个数,其中标点和空格不计算为单词,输出统计结果. (4) 检查源程序中存在的非法字符错误,并可以报告错误所在的行列位置. (5) 发现源程序中存在错误后,进行适当的恢复,使词法分析可以继续进行,通过一次词法分析处理, 可以检查并报告源程序中存在的所有词法拼写错误.-C language lexical analyzer. (1) can be identified with the C source program written in symbols for each word, and to mark each word in the form of output symbols. (2) to identify and read the comments in the source program. (3) can be statistical source of the statement line number, word number and the number of characters, including punctuation and spaces are not counted as words, the output results. (4) Check the source in the presence of illegal character errors, and the ranks of the errors can be reported position. (5) found that there is an error source, the proper recovery, so that lexical analysis can proceed, through a lexical analysis and processing, you can check and report on all of the lexical source spelling errors.
Platform: | Size: 2048 | Author: lili | Hits:

[ELanguagecopy

Description: 这是学习编译原理时,为词法分析做准备,用C写的一个小程序,把一个文件中的空格去除掉,复制到另一个文件中保存。希望对初学者有用-This is the time to learn compiler theory, in preparation for the lexical analysis, using a small program written in C, the space of a file to remove, copy, save to another file. Want to be useful for beginners
Platform: | Size: 179200 | Author: 楚明阳 | Hits:

[ELanguageNBuilder-Lexical

Description: 用MFC实现的C语言词法分析器,是学习编译原理的不错的参考资料,本程序用VS2010编写,此词法分析程序可分析出C语言中: 标识符(以字母或下划线开头,后面可以是数字字母或下划线) 字符串常量 字符常量 整数常量 普通实型 有+/-科学记数 无+/-科学记数 注释说明,还不能处理预处理命令33种运算符说明:,() [] .在界符中有,这里出 , ? : sizeof 也没给出11种分界符32种关键字程序使用转换表设计,运行速度快,本人还对每个能识别的符号进行了编号。本程序用VS2010 MFC 设计的,欢迎大家下载分享-A C language lexical analyzer, is a good learning compiler theory of reference, write the program with VS2010, the lexical analysis process can be analyzed in C: Identifier (a letter or underscore, followed can be alphanumeric or an underscore) String constants Character constants Integer constant General Real With+ /- scientific notation No+ /- scientific notation Notes, can not handle pre-order 33 kinds of operators Description:, () [] operator in the world, where a,?: Sizeof did not give 11 kinds of procedure delimiter 32 kinds of keyword use the conversion table design , run fast, I also can identify the symbols for each numbered. This program designed with the VS2010 MFC, welcome to download share. . . .
Platform: | Size: 21183488 | Author: 杨兵 | Hits:

[Data structsLexaYacc

Description: his document explains how to construct a compiler using lex and yacc. Lex and yacc are tools used to generate lexical analyzers and parsers. I assume you can program in C and understand data structures such as linked-lists and trees. The Overview describes the basic building blocks of a compiler and explains the interaction between lex and yacc.
Platform: | Size: 157696 | Author: tang | Hits:
« 12 3 4 »

CodeBus www.codebus.net